﻿@model Gagnatek.WebSite.Models.Users

@{
    ViewBag.Title = "Ajouter un nouvel abonné";
}

<h2>Ajouter un nouvel abonné</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Nouvel abonné</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.email)
            @Html.ValidationMessageFor(model => model.email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.password)
            @Html.ValidationMessageFor(model => model.password)
        </div>

@*        <div class="editor-label">
            @Html.LabelFor(model => model.role_id, "Roles")
        </div>
        <div class="editor-field">
            @Html.DropDownList("role_id", String.Empty)
            @Html.ValidationMessageFor(model => model.role_id)
        </div>*@

        <p>
            <input type="submit" value="Ajouter" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
